<?php
/**
 * Interface ILightDB
 *
 * Interface to LightDB
 *
 * @todo Finish documenting methods
 */
interface PEAR2_LightDB_Interface
{
    /**
     * Set DSN
     *
     * This method set the DSN information for the
     * driver.
     *
     * @param mixed  $dsninfo The datasource informtaions Array or string
     */
    public function setDSN($dsninfo);

    /**
     * Connect
     *
     * Execute the connecion to the database.
     */
    public function connect();
    
    /**
     * Place a query, any type of query
     */
    public function query($query, $type = null, $colnum = 0);

    /**
     * Query One
     *
     * Query one result from the query.
     */
    public function queryOne($query, $type = null, $colnum = 0);
    public function queryAll($query, $types = null, $fetchmode = false);
    public function queryRow($query, $type = null, $colnum = 0);
    public function queryCol($query, $type = null, $colnum = 0);
}
